import { getSession, userInfo } from '../utils/config'

const getters = {
  user: state => {
    let u = state.user.user.name ? state.user.user : getSession(userInfo)
    return u
  }
}
export default getters
